package top.codedance.iotp.simulator.serialPort.urs.strongElectricity;

import top.codedance.iotp.common.util.BytesBuilder;
import top.codedance.iotp.common.util.HexCodec;
import top.codedance.iotp.simulator.serialPort.srs.Simulator;

import java.util.ArrayList;
import java.util.List;

/**
 * 飞利浦强电
 */
public class Philips implements Simulator {
    @Override
    public List<BytesBuilder> exec(byte[] cmd) {
        List<BytesBuilder> results = new ArrayList<>();
        HexCodec hc = new HexCodec();
        String c = hc.toHex(cmd).replaceAll("\\s+", "").toUpperCase();
        if(c.equals("1CFE00000000FFE7")){
//            BytesBuilder bb = new BytesBuilder();
//            bb.append("1CFE00000000FFE7".getBytes());
//            results.add(bb);
        }
        if(c.equals("1CFE00010000FFE6")){

        }
        return results;
    }
}
